package    com.ld.poetry.aigc.codegeex.ningtw;

import java.io.File;
import java.io.FileOutputStream;
import java.util.zip.ZipOutputStream;

class CodeContinue{
//    public static void main(String[] args) {
////        NO1
//        System.out.println("Hello, World!");
//    }



    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }

//    生成打包压缩文件的公共方法
    public static void packAndCompress(String sourceFolderPath, String zipFilePath) {
        try {
            FileOutputStream fos = new FileOutputStream(zipFilePath);
            ZipOutputStream zipOut = new ZipOutputStream(fos);
            File fileToZip = new File(sourceFolderPath);
            zipFile(fileToZip, fileToZip.getName(), zipOut);
            zipOut.close();
            fos.close();
            System.out.println("文件打包压缩成功！");
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("文件打包压缩失败！");
        }
    }

    private static void zipFile(File fileToZip, String name, ZipOutputStream zipOut) {

    }

    // 生成apache的poi生成一个校验execel公式的方法
    public static String generateApachePoiExcelFormula(String input) {
        return "=SUM(C1:C10)";
    }

}